const express = require("express");
const api = express.Router();
const user = require("./user");
const upload = require("./upload");
const blog = require("./blog");
const comment = require("./comment");
const captcha = require("./captcha");

// 用户路由
api.use("/user", user);
// 上传路由
api.use("/upload", upload);
// 验证码路由
api.use("/captcha", captcha);
// 博客路由
api.use("/blog", blog);
// 评论路由
api.use("/comment", comment);

module.exports = api;
